<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label">父级字典：</label>
								<div class="col-sm-8">
									<input type="hidden" name="parentId" id="parentId"
										th:value="${parentId}"> <input id="parentName"
										name="parentName" th:value="${parentName}"
										class="form-control" type="text" readonly="readonly">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">字典类型：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择类别--" name="type"
										id="type" class="form-control chosen-select" tabindex="2"
										required>
										<option value="">--选择类别--</option>
										<option value="1">数据分类</option>
										<option value="2">数据值</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">字典名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text"
										required>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">数据编码/值：</label>
								<div class="col-sm-8">
									<input id="value" name="value" class="form-control" type="text"
										required>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">描述：</label>
								<div class="col-sm-8">
									<input id="description" name="description" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">排序号：</label>
								<div class="col-sm-8">
									<input id="orderNum" name="orderNum" class="form-control"
										type="text" required="required">
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
	<script type="text/javascript" src="/js/app/base/dict/add.js"
		th:src="@{/js/app/base/dict/add.js}">
	</script>
</body>
</html>
